/*
 * @Description:
 * @Author: peng.zhang
 * @Date: 2023-05-20 01:48:19
 * @LastEditors: peng.zhang
 * @LastEditTime: 2023-05-20 18:24:30
 */
const baseUri = process.env.VUE_APP_BASE_URI
export const THEME_UPLOAD_URL = baseUri + '/themes/image/'
export const SCREENSAVER_UPLOAD_URL = baseUri + '/screensave/'
export const MEDIA_UPLOAD_URL = baseUri + '/media/video/'
export const PDF_UPLOAD_URL = baseUri + '/static/pdf/'
export const IMG_UPLOAD_URL = baseUri + '/static/image/'

export const getMediaUrl = function(type = 'video') {
  if (type === 'video') {
    return MEDIA_UPLOAD_URL
  } else if (type === 'pdf') {
    return PDF_UPLOAD_URL
  } else if (type === 'image') {
    return IMG_UPLOAD_URL
  }
}
